/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cz.muni.fi.heathrowapi.dto;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.List;

/**
 *
 * @author Ufonzak
 */
public class FlightDTO implements Serializable
{    
    private Long id;

    public Long getId()
    {
        return id;
    }

    public void setId(Long id)
    {
        this.id = id;
    }
    
    private List<StewardDTO> stewards = new ArrayList<StewardDTO>();

    public List<StewardDTO> getStewards()
    {
        return stewards;
    }

    public void setStewards(List<StewardDTO> stewards)
    {
        this.stewards = stewards;
    }
    
    private DestinationDTO flightFrom;

    public DestinationDTO getFlightFrom()
    {
        return flightFrom;
    }

    public void setFlightFrom(DestinationDTO flightFrom)
    {
        this.flightFrom = flightFrom;
    }
    
    private DestinationDTO flightTo;

    public DestinationDTO getFlightTo()
    {
        return flightTo;
    }

    public void setFlightTo(DestinationDTO flightTo)
    {
        this.flightTo = flightTo;
    }
    
    private AircraftDTO aircraft;

    public AircraftDTO getAircraft()
    {
        return aircraft;
    }

    public void setAircraft(AircraftDTO aircraft)
    {
        this.aircraft = aircraft;
    }
    
    private Calendar arrival;

    public Calendar getArrival() {
        return arrival;
    }

    public void setArrival(Calendar arrival) {
        this.arrival = arrival;
    }
    
    private Calendar departure;

    public Calendar getDeparture() {
        return departure;
    }

    public void setDeparture(Calendar departure) {
        this.departure = departure;
    }
    

    @Override
    public int hashCode()
    {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object)
    {
        if (!(object instanceof FlightDTO)){
            return false;
        }
        FlightDTO other = (FlightDTO) object;
        if (this.id == null || (this.id != null && !this.id.equals(other.id))){
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "Flight{" + "id=" + id + ", stewards=" + stewards + ", flightFrom=" + flightFrom + ", flightTo=" + flightTo + ", aircraft=" + aircraft + ", arrival=" + arrival + ", departure=" + departure + '}';
    }
}
